package com.yeyks.hotel.utils;

import java.util.Objects;

public class HotelInfoUtil {

    //根据星级获取文字名称
    public static String getStartText(Integer starLevel){
        String startText = "";
        if (Objects.nonNull(starLevel)) {
            switch (starLevel) {
                case 2:
                    startText = "民宿";
                    break;
                case 3:
                case 4:
                case 5:
                    startText = "星级";
                    break;
                case 6:
                    startText = "商务";
                    break;
            }
        }
        return "";
    }

}
